package com.project.bean;

import java.time.LocalDate;

/**
 * @Author(王思翰)
 * @Description(类的描述)活动实体类
 * @Date(创建时间) 2021/7/10 16:54
 */
public class EventBean {
    /**
     * 活动Id
     */
    private Integer id;

    /**
     * 活动名字
     */
    private String name;

    /**
     * 活动时间
     */
    private LocalDate date;

    /**
     * 活动地点
     */
    private String address;

    /**
     * 活动负责人
     */
    private String toName;

    /**
     * 活动所属对象
     */
    private SchoolBean schoolBean;

    public EventBean() {
    }

    public EventBean(String name, LocalDate date, String address, String toName, SchoolBean schoolBean) {
        this.name = name;
        this.date = date;
        this.address = address;
        this.toName = toName;
        this.schoolBean = schoolBean;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getToName() {
        return toName;
    }

    public void setToName(String toName) {
        this.toName = toName;
    }

    public SchoolBean getSchoolBean() {
        return schoolBean;
    }

    public void setSchoolBean(SchoolBean schoolBean) {
        this.schoolBean = schoolBean;
    }

    @Override
    public String toString() {
        return "eventBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", date=" + date +
                ", address='" + address + '\'' +
                ", toName='" + toName + '\'' +
                ", schoolBean=" + schoolBean +
                '}';
    }
}
